@extends('home.layout.layout')
@section('title','帖子列表')
@section('con')

	

	<div class="hp-wrap">
            <div id="container" class="rel">
                <div id="container_padd">
                    <div id="sidenav_bbs">
                        <div id="bbs_banner">
                            <h4>
                                <a class="h4_t">
                                    版块分类
                                </a>
                            </h4>
                            <ul>
                                <li id="l1" >
                                    <a href="/home/post/index?sid=1">
                                        NBA区
                                    </a>
                                </li>
                            </ul> 
                            <ul>
                                <li id="l1" >
                                    <a href="/home/post/index?sid=2">
                                        交易区
                                    </a>
                                </li>
                             </ul> 
                             <ul>   
                                <li id="l1" >
                                    <a href="/home/post/index?sid=3">
                                        技术区
                                    </a>
                                </li>
                            </ul>
                        </div>
                        
                    </div>
                    
                    <!-- 中间 start -->
                    <div id="recomBbsIndex" style='width:790px'>
                        <h1>
                            虎扑论坛热帖
                        </h1>
                        <div class="list">
                            <h3>
                                <a href="">
                                @if(!empty($post[0]->sname))
                                    {{$post[0]->sname}}
                                @else
                                    全部
                                @endif    
                                </a>
                                <span class="f666">
                                    <a href="" target="_blank">
                                        热帖
                                    </a>
                                </span>
                            </h3>
                            <ul>
                            	@foreach($post as $k=>$v)
                                <li>
                                    <span class="textSpan" style="position:relative;width:676px;" >
                                        <a href="/home/post/info?pid={{$v->pid}}"  target="_blank" title="{{$v->pname}}">
                                            <span class="red yuelan" pid="{{$v->pid}}">
                                                {{$v->pname}}
                                            </span>
                                        </a>
                                        <em style="position:relative;float:right;" class="f666">
                                            {{$v->ctr}}阅览 &nbsp;&nbsp;&nbsp; {{$v->num}}回复
                                        </em>
                                    </span>
                                    <span class="forum" style="width:80px;" >
                                        <a target="_blank" href="/home/block/index?bid={{$v->bbid}}" class="f666">
                                            {{$v->bname}}
                                        </a>
                                    </span>
                                </li>
                                @endforeach
                            </ul>
                        </div>
                       

                        
                    </div>
                    <!-- 中间 end -->
                    <!-- 右侧 start -->
                    <div id="indexSidebar">
                        <h3>
                            <a href="/boards.php">
                                版块列表
                            </a>
                        </h3>
                        <div class="list">
                            <div class="title">
                                <h4>
                                    <a target="_blank" href="#">
                                        NBA区
                                    </a>
                                </h4>
                            </div>
                            <ul>
                        	@foreach($block as $k=>$v)
                                        @if($v->sid == 1)
			                                <li>
			                                    <a target="_blank" href="/home/block/index?bid={{$v->bid}}">
														{{$v->bname}}			
			                                    </a>
			                                </li>
                                        @endif
                            @endforeach
                            </ul>
                        </div> 
                        <br>  
                        <div class="list">
                            <div class="title">
                                <h4>
                                    <a target="_blank" href="#">
                                        交易区
                                    </a>
                                </h4>
                            </div>
                            <ul>
                        	@foreach($block as $k=>$v)
                                        @if($v->sid == 2)
			                                <li>
			                                    <a target="_blank" href="/home/block/index?bid={{$v->bid}}">
														{{$v->bname}}			
			                                    </a>
			                                </li>
                                        @endif
                            @endforeach
                            </ul>
                        </div> 
                        <br>
                        <div class="list">
                            <div class="title">
                                <h4>
                                    <a target="_blank" href="#">
                                            技术区
                                    </a>
                                </h4>
                            </div>
                            <ul>
                        	@foreach($block as $k=>$v)
                                        @if($v->sid == 3)
			                                <li>
			                                    <a target="_blank" href="/home/block/index?bid={{$v->bid}}">
														{{$v->bname}}			
			                                    </a>
			                                </li>
                                        @endif
                            @endforeach
                            </ul>
                            
                            <div class="clearfix">
                            </div>
                          
                        </div>
                        
                        
                        <!-- 右侧 end -->
                    </div>
                   

                </div>
            </div>
        </div>
        
        
        
       
        <b id="footer-loadedError">
        </b>
        <div class="hp-footer">
            <div class="hp-copyright">
                虎扑（上海）文化传播股份有限公司
                <a href="" target="_blank">
                    沪B2-20120042
                </a>
                沪ICP备05037078号-13
            </div>
            <div class="hp-copyright">
                Copyright by 虎扑JRs &amp;
                <a href="" target="_blank" title="体育">
                    虎扑体育
                </a>
                -
                <a href="" target="_blank">
                    在虎扑工作
                </a>
                -
                <a href="" target="_blank">
                    联系我们
                </a>
                -
                <a href="" target="_blank">
                    手机虎扑
                </a>
                -
                <a href="" target="_blank">
                    网站声明
                </a>
                -
                <a href="" target="_blank">
                    网站地图
                </a>
                -
                <a href="" target="_blank" title="NBA">
                    NBA
                </a>
                -
                <a href="" target="_blank" title="CBA">
                    CBA
                </a>
                -
                <a href="" target="_blank" title="足球">
                    足球
                </a>
                -
                
               
            </div>
            <div class="securityPic">
                <a href="" target="_blank">
                    <img src="" alt="金华市公安局网络报警">
                </a>
                <a href="" target="_blank">
                    <img src="" alt="网络社会征信网">
                </a>
                <a href="" target="_blank">
                    <img src="" alt="上海网络举报图片">
                </a>
                <a href="/" target="_blank">
                    <img src="" alt="全国网络举报图片">
                </a>
            </div>
        </div>

    </body>



    
   
    

@endsection
@section('js')
<script type="text/javascript">
    $('.yuelan').click(function(){
        var str = $(this);
        var pid = $(this).attr('pid');
        $.get('/home/post/addyue',{pid:pid},function(data){
            console.log(data);
        });
        // console.log($(this).attr('pid'));
    })
</script>
@endsection